<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
                            <input id="oldDeptId" name="oldDeptId" class="hidden" th:value="${manageMetadata.deptId}">
						<form class="form-horizontal m-t" id="signupForm">
                            <input id="tableId" name="tableId" class="hidden" th:value="${manageMetadata.tableId}">
							<div class="form-group">
								<label class="col-sm-3 control-label">表名称：</label>
								<div class="col-sm-8">
								<th:block th:if="${manageMetadata.createFlag == 0}">
									<input readonly="readonly" maxlength="30" id="targetTableName" name="targetTableName" class="form-control"
										type="text" th:value="${manageMetadata.targetTableName}">
								</th:block>
								<th:block th:if="${manageMetadata.createFlag == -1}">
									<input maxlength="30" id="targetTableName" name="targetTableName" class="form-control"
										type="text" th:value="${manageMetadata.targetTableName}">
								</th:block>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">中文描述：</label>
								<div class="col-sm-8">
									<input id="targetTableComment" name="targetTableComment" class="form-control"
										type="text" th:value="${manageMetadata.targetTableComment}">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">所属部门：</label>
								<div class="col-sm-8">
									<select data-placeholder="选择所属部门"
										class="form-control chosen-select dept-select">
										<option value="">选择所属部门</option>
									</select>
								</div>
								<input id="deptId" name="deptId" type="hidden" th:value="${manageMetadata.deptId}">
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">排序：</label>
								<div class="col-sm-8">
									<input id="orderNum" name="orderNum" class="form-control" type="number" th:value="${manageMetadata.orderNum}">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">同步类型：</label>
								<div class="switch onoffswitch col-sm-3">
									<div class="onoffswitch">
										<input id="changeType" name="changeType" type="hidden" th:value="${manageMetadata.changeType}"/>
										<input th:checked="${manageMetadata.changeType== 1}" id="allowComment" 
											type="checkbox" value="1" checked="checked"  class="onoffswitch-checkbox">
										<label class="onoffswitch-label" for="allowComment"> <span
											class="onoffswitch-inner change-type"></span> <span
											class="onoffswitch-switch"></span>
										</label>
									</div>
								</div>
							</div>
							<th:block th:if="${manageMetadata.importType == 1}">
								<div class="form-group">
									<label class="col-sm-3 control-label">采集状态：</label>
									<div class="col-sm-8">
										<div class="radio-inline">
										  <input type="radio" th:checked="${manageMetadata.status== 0}" name="status" value="0" id="status_normal"/>
										  <label for="status_normal">自动</label>
										</div>
										<div class="radio-inline">
										  <input type="radio" th:checked="${manageMetadata.status== 2}" name="status" value="2" id="status_invalid"/>
										  <label for="status_invalid">手动</label>
										</div>
									</div>
								</div>
							</th:block>
							<div class="form-group">
								<div class="col-sm-2 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script th:inline="javascript"> var ctx = [[@{/}]] ; </script>
	<script type="text/javascript" src="/js/app/metadata/manage/edit.js" th:src="@{/js/app/metadata/manage/edit.js}">
		
	</script>
</body>
</html>
